module Syspec

  Lacrima::Options.define_for self do |options|
    
    options.defaults do |o|
      o.file = "Syspecfile"
      o.checks = :everything
    end

    options.usage do |op|
      op.banner = Syspec::Version
      op.separator "Usage: syspec [options] [specific checks]"
    end
    
    options.parser do |op, o|
      op.on("-f", "--file=NAME", String, "use a different file from Syspecfile") do |v|
        o.file = v
      end
    end
    
    options.arguments do |args, o|
      unless args.empty?
        o.checks = args.map(&:to_sym)
      end
    end

  end

end